source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
platform :ios, '13.0'
use_frameworks!
inhibit_all_warnings!

targetArray = ['SwiftProject', 'SwiftProject Develop']
targetArray.each do |t|
  target t do
    #UI类
    pod 'SnapKit'
    pod 'SnapkitArrayExtention'
    pod 'QMUIKit'
    pod 'MJRefresh'
    pod "KRProgressHUD"
    pod 'SwiftyFitsize'
    pod 'AttributedString'
    pod 'IGListKit'
    pod 'JXSegmentedView'
    pod 'JXPagingView/Paging'
    
    #功能类
    pod 'Alamofire'
    pod 'Kingfisher'
    pod 'HandyJSON'
    pod 'KeychainSwift'
    pod 'RxSwift'
    pod 'RxCocoa'
    pod 'NSObject+Rx'
    pod 'RxGesture'
    pod 'IQKeyboardManagerSwift'
    #pod 'Track', :git => 'https://github.com/maquannene/Track.git', :branch => 'master'
    pod 'FSPagerView' # 轮播图
    pod 'SwiftDate'
    pod 'CryptoSwift' #加密相关
    pod 'FloatingPanel'
    pod 'FLEX',:configuration => 'Debug'
    pod 'Moya/RxSwift'
    pod 'AliyunOSSiOS'

  end
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
 target.build_configurations.each do |config|
  if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'].to_f < 13.0
    config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
     end
   end
  end
#  installer.pods_project.build_configurations.each do |config|
#    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
#  end
end
